package com.empire.module.member.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.URL;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

import static com.empire.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;

/**
 * 会员用户 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MemberUserBaseVO {

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "用户昵称", example = "李四")
    private String name;

    @Schema(description = "用户性别", example = "1")
    private Integer sex;

    @Schema(description = "出生日期", example = "2023-03-12")
    private LocalDateTime birthday;

    @Schema(description = "会员备注", example = "我是小备注")
    private String mark;

    @Schema(description = "会员标签", example = "[1, 2]")
    private List<Long> tagIds;

    @Schema(description = "用户分组编号", example = "1")
    private Long groupId;

    @Schema(description = "会员身份证号码", example = "100101195809133242")
    private String idcard;

    @Schema(description = "人员管控单位ID", example = "2")
    private Long deptId;

    @Schema(description = "人员管控单位", example = "杭州市")
    private String deptName;

    /**
     * 国家
     */
    @Schema(description = "国家", example = "中国")
    private String country;
    /**
     * 国籍/民族
     */
    @Schema(description = "国籍/民族", example = "汉子")
    private String nation;
    /**
     * 备注
     */
    @Schema(description = "备注", example = "爱说笑唱歌")
    private String remark;
    /**
     * 电话号码
     */
    @Schema(description = "电话号码", example = "18898943452,16489352351")
    private String phoneNumber;
    /**
     * 车牌号码
     */
    @Schema(description = "车牌号码", example = "京A89783,沪A89345")
    private String carNumber;
    /**
     * 护照号
     */
    @Schema(description = "护照号", example = "H4530923")
    private String passportNumber;
    /**
     * 宗教信仰
     */
    @Schema(description = "宗教信仰", example = "基督教")
    private String faith;
    /**
     * 居住地
     */
    @Schema(description = "居住地", example = "广东省xxx1号")
    private String liveAddress;
    /**
     * 户籍地
     */
    @Schema(description = "户籍地", example = "广东省xxx1号")
    private String birthPlace;
    /**
     * 是否外国人 1-是 2-不是
     */
    @Schema(description = "是否外国人", example = "1")
    private Integer foreigner;
}
